{template "header-huiyuan.html"}
{template "lahei-daohang-list.html"}
<div class="d-container">
	<div class="d-row">
		<div class="col-md-6 col-md-offset-3  d-yuanjiao-20">
			<div class="row">
				<div class="d-yuanjiao-10 d-kuan d-bianhua-20 ">

					<div id="content_list">
						{template "lahei-guanliyonghu-list.html"}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<style>
	.d-tishi {
		margin-left: -20px;
		margin-top: -20px;
	}
	.d-beijing-hongse-2 {
		background-color: #f95705;
	}
</style>
<script>
	//滚动显示更多
	var Mpage=1;
	var scroll_get = true;  //做个标志,不要反反复复的加载
	$(document).ready(function () {
	    $(window).scroll(function () {
	        if (scroll_get==true &&  (400 + $(window).scrollTop())>($(document).height() - $(window).height())) {
	            scroll_get = false;
	            /*layer.msg('内容加截中,请稍候',{time:1000});*/
	            dr_ajax_load_more();
	        }
	    });
	});
	function dr_ajax_load_more(){
	    Mpage++;
	    $.get('{SITE_URL}index.php?s=api&c=api&m=template&app=member&lanmu=quan&name=lahei-guanliyonghu-list.html&format=json&page='+Mpage+'&'+Math.random(),function(res){
	        $('.footer-cont').hide();
	        if(res.code==1){
	            if (res.msg.indexOf("</div>") != -1) {
	                $('#content_list').append(res.msg);
	                scroll_get = true;
	            } else {
	                layer.msg("已经显示完了",{time:500});
	            }
	        }else{
	            /*layer.msg(res.msg,{time:2500});*/
	        }
	    }, 'json');
	}
	// 解封用户
	$('[id="jiefenguid"]').click(function() {
		var uid = $(this).data("touid");
	    d_jiefenguidpost(uid); 
	});
	function d_jiefenguidpost(uid){
		  $.ajax({
			  type: "POST",
			  dataType: "json",
			  url: "{SITE_URL}index.php?s=member&app=quan&c=lahei&m=jiefenguid",
			  data: 'touid='+uid,
			  success: function(data) {
				  if(data.code==1){
					  $(".yonghu_"+uid).hide();
				  }
				  dr_cmf_tips(data.code, data.msg);
			  },
			  error: function(HttpRequest, ajaxOptions, thrownError) {
				  layer.closeAll('loading');
				  alert(HttpRequest.responseText);
			  }
		  })
	}
</script>
{template "fanhui.html"}
{template "mfooter.html"}